package com.easywan.service.impl;

import java.util.Date;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.easywan.dao.IpcounterMapper;
import com.easywan.service.IpSerivce;
import com.easywan.util.Utils;
import com.easywan.vo.Ipcounter;

@Service
public class IpServiceImpl implements IpSerivce{
	@Autowired
	IpcounterMapper ipCounterMapper;
	@Override
	public void addIp(Ipcounter ip) {
		Date nowDate = Utils.getNowDate();
		ip.setCreatetime(nowDate);
		ip.setModifytime(nowDate);
		ipCounterMapper.insert(ip);
	}

}
